package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.system.domain.LanguageType;
import com.ruoyi.system.domain.params.LanguageTypeParams;
import com.ruoyi.system.domain.vo.LanguageTypeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 语言类型Mapper接口
 *
 * @author huyafang
 * @date 2023-03-06
 */
@Mapper
@Repository
public interface LanguageTypeMapper extends BaseMapper<LanguageType> {

    IPage<LanguageTypeVo> queryList(IPage<LanguageTypeVo> page, @Param("condition") LanguageTypeParams languageTypeParams, @Param("notCode") String code);

    LanguageType getById(Long id);

    LanguageType getByCode(String code);

    int save(LanguageType languageType);

    LanguageType getByObjForUpdateDefault(LanguageType query);

    int update(LanguageType languageType);

    int deleteByIds(Long[] ids);

    LanguageType selectOne(LanguageType query);

    List<LanguageType> selectByCodes(String codeType);
}
